﻿@{
    Layout = null;
}
@model IEnumerable<ICDA.Web.Models.LeaveModel>
<table>
    <tr>
        <th>
            ID
        </th>
        <th>
            Leave Start Date
        </th>
        <th>
            Leave End Date 
        </th>
        <th>
            Leave Type
        </th>
        <th>
            Day Type
        </th>
        <th>
            Leave Name
        </th>
        <th></th>
    </tr>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LeaveStartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LeaveEndDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LeaveType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DayType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LeaveName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}
</table>